package com.yss.sofa.report.engine.cell.visible.extendable;

import com.yss.sofa.report.engine.Const;
import com.yss.sofa.report.engine.cell.ReportCell;

public class ExpressionCell extends ExtendableCell{
	private static final long serialVersionUID = -6526586105979160975L;
	private String exp;
	protected void init() {
		super.init();
		this.type=Const.REPORT_CELL_TYPE_EXP;
		this.dataType=Const.CELL_DATA_TYPE_EXP;
	}
	public void assignTo(ReportCell cell){
		ExpressionCell _=(ExpressionCell)cell;
		super.assignTo(_);
		_.exp=this.exp;
	}
	
	public ExpressionCell create(){
		ExpressionCell _=new ExpressionCell();
		this.assignTo(_);
		return _;
	}
	
	public String getExp() {
		return exp;
	}
	public void setExp(String exp) {
		this.exp = exp;
	}
	public int getDataType(){
		return Const.CELL_DATA_TYPE_EXP;
	}
	public void setDataType(int dataType){}
}
